package com.egg.auth.config.token;

import cn.dev33.satoken.jwt.StpLogicJwtForSimple;
import cn.dev33.satoken.stp.StpLogic;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SaTokenConfigure {

    // Sa-Token 整合 jwt (Simple 简单模式)
    @Bean
    public StpLogic initStpLogic() {
        // 实例化 [StpLogicJwtForSimple] 才可以使用jwt功能
        return new StpLogicJwtForSimple();
    }

}